package com.yanxibao.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yanxibao.bean.User;
import com.yanxibao.common.Result;
import com.yanxibao.dto.LoginDTO;
import com.yanxibao.dto.UserDTO;
import com.yanxibao.dto.UserSearchDTO;
import org.springframework.data.domain.PageImpl;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 用户;(_user)表服务接口
 * @author : http://www.chiner.pro
 * @date : 2022-9-25
 */
@Service
public interface UserService extends IService<User> {


    Result<UserDTO> login(LoginDTO loginDTO);

    Result<User> selectUserById(String id);

    Result<IPage<User>> paginQuery(Integer currentSize, UserSearchDTO userSearchDTO);

    Result<User> updateUser(User user);

    Result<Boolean> deleteUserById(String userId);
}